<!-- 兑换券列表 Start -->
		<table class="table table-striped ddd-table">
			<thead>
				<tr>
					<th>兑换券名称</th>
					<th>关联商品名称</th>
					<th>配送次数</th>
					<th>商品价格</th>
					<th>使用有效期</th>
					<th>已使用/总数</th>
					<th>状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<col width="15%"></col>
				<col width="20%"></col>
				<col width="10%"></col>
				<col width="10%"></col>
				<col width="10%"></col>
				<col width="10%"></col>
				<col width="10%"></col>
				<col width="15%"></col>
				{{if isEmpty(data) || isEmpty(data.records)}}
				{{else}}
					{{each data.records as data index}}
						<tr>
							<td>{{data.coupon_name}}</td>
							<td>{{data.goods_name}}</td>
							<td>{{data.delivery_times}}</td>
							<td>{{data.goods_price}}</td>
							<td>{{dateFormat(data.valid_begintime,'yyyy-MM-dd')}}~{{dateFormat(data.valid_endtime,'yyyy-MM-dd')}}</td>
							<td>{{data.used_times}} / {{data.total_num}}</td>
							<td>
							{{if data.status==1}}
							<span class="f-gray">{{data.status_name}}</span>
							{{else if data.status==2}}
							<span class="f-green">{{data.status_name}}</span>
							{{else if data.status==3}}
							<span class="f-red">{{data.status_name}}</span>
							{{/if}}
							</td>
							<td>
								<a href="#" class="viewCoupon" data-id="{{data.id}}" data-name="{{data.coupon_name}}" data-status="{{data.status}}">查看兑换券</a>&nbsp;
								{{ if data.status != 3}}
								<a href="javascript:void(0);" class="editCoupon" data-id="{{data.id}}">编辑</a>&nbsp;
								{{/if}}
								<a href="#" class="delCoupon" data-id="{{data.id}}" >删除</a>
						</tr>
					{{/each}}
				{{/if}}
			</tbody>
		</table>
	<!-- 兑换券列表 End -->